98% 1 LINE Solution
Complexity
Time complexity: O(n)

Space complexity: O(n)
Code
# Complexity
- Time complexity: O(n)
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity: O(n)
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```python3 []
class Solution:
    def reverseDegree(self, s: str) -> int:
        return sum((27 - (ord(c) - 96)) * (index + 1) for index, c in enumerate(s))
```
['Python3']