Simple solution in Typescript
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```typescript []
function reverseDegree(s: string): number {
    let alphabet = new Map()
    let value = 26
    let total = 0
    for (let i = 97; i <= 122; i++) {
        alphabet.set(String.fromCharCode(i), value--);
    }
    for (let j = 0; j < s.length; j++) {
        total += (j + 1) * alphabet.get(s[j]);
    }
    return total
};
```
['TypeScript']