Simple solution -> Beats 100.00%
IntuitionApproachComplexity

Time complexity:
O(n)


Space complexity:
O(1)

Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
O(n)

- Space complexity:
O(1)

# Code
```java []
class Solution {
    public int reverseDegree(String s) {

        int ans = 0;
        char[] chars = s.toCharArray();

        for (int i = 0; i < chars.length; i++)
            ans += (i + 1) * (26 - (chars[i] - 'a'));

        return ans;
    }
}
```
['Java']