Beats 98% | SImple to understand
Code


# Code
```python3 []

class Solution:
    def reverseDegree(self, s: str) -> int:
        lookup = {}
        j = 71 #diff between ascii of "a" to get 26
        for c in range(97, 123, 1):
            lookup[chr(c)] = 97 - j
            j += 1
        sm = 0
        for i in range(len(s)):
            sm += lookup[s[i]] * (i + 1)
        return sm
```
['Python3']