Sum of Prefix Scores of Strings
You are given an array `words` of non-empty strings. Define the **score** of a string `word` as the number of strings `words[i]` such that `word` is a prefix of `words[i]`. Return the sum of the scores of every string in `words`.