Rosetta Problems

Sum of Prefix Scores of Strings

https://leetcode.com/problems/sum-of-prefix-scores-of-strings