Java 100% Faster Solution
Complexity
Time complexity: O(N)
Space complexity: O(1)
Code
# Complexity
- Time complexity: O(N)
- Space complexity: O(1)

# Code
```java []
class Solution {
    public int reverseDegree(String s) {
        int result = 0;
        for (int i = 0; i < s.length(); i++) {
            int score = (26 - (s.charAt(i) - 'a')) * (i + 1);
            result += score;
        }
        return result;
    }
}
```
['Java']