C# Solution
Complexity

Time complexity: O(n)


Space complexity: O(1)

Code
# Complexity
- Time complexity: $$O(n)$$

- Space complexity: $$O(1)$$

# Code
```csharp []
public class Solution {
    public int ReverseDegree(string s) 
    {
        int res = 0;

        for (int i = 0; i < s.Length; ++i)
        {
            res = res + (26-(int)(s[i]-'a')) * (i + 1);
        }

        return res;
    }
}
```
['C#']