"Easy" C++ Code for Score Of String Beats 100% 
Intuitioncomapring current and adjacent string character.Approachcomapring current and adjacent string character and subtracting their ASCII values and storing
# Intuition
comapring current and adjacent string character.

# Approach
comapring current and adjacent string character and subtracting their ASCII values and storing them into a variable and returning it.

# Complexity
- Time complexity: O(n)

- Space complexity: O(1)

# Code
```cpp []
class Solution {
public:
    int scoreOfString(string s) {
        int score=0;
        for(int i=0;i<s.size()-1;i++){
            score=score+abs(s[i+1]-s[i]);
        }
        return score;
    }
};
```
['C++']