count each symbol
```javascript []
/**
 * @param {string} s
 * @return {number}
 */
var reverseDegree = function(s) {
    ans = 0

    for (let i = 0; i < s.length; i++) {
        ans += (i + 1) * (26 - (s.charCodeAt(i) - 97))
    }

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