Easy Java Solution
IntuitionApproachComplexity
Time complexity: O(N)

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

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

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

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

# Code
```java []
class Solution {
    public int scoreOfString(String s) {
        int ans = 0;

        for(int i = 0;i<s.length()-1;i++){
            int abs = Math.abs(((int)s.charAt(i)) - ((int)s.charAt(i+1)));
            ans+=abs;
        }

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