Unique Approach | hashing
Code


# Code
```cpp []
class Solution {
public:
    int reverseDegree(string s) {
       unordered_map<char,int>map;
       for(char ch='a';ch<='z';ch++)  map[ch]= 'z'-ch+1;

       int sum=0;
       for(int i=0;i<s.length();i++){
         sum+=(map[s[i]]*(i+1));
       }
       return sum;
    }
};
```
['Hash Table', 'String', 'C++']