python
Code
# Code
```python3 []
class Solution:
    def reverseDegree(self, s: str) -> int:
        arr = []
        val = 26
        rs = 0
        while val > 0:
            arr.append(val)
            val -= 1
        for i in range (0, len(s)):
            rs += arr[ord(s[i]) - ord('a')] * (i + 1)
        return rs
        
```
['Python3']