<<BEAT 100% SOLUTIONS>>
PLEASE UPVOTE MECode
# PLEASE UPVOTE ME
# Code
```cpp []
class Solution {
public:
    int reverseDegree(string s) {
        int ans=0;
        for(int i=0;i<s.size();i++){
            int a=(int)s[i];
            ans+=((i+1)*(26-(a-97)));}
            return ans;
    }
};
```
['C++']