last submission beat 100% of other submissions' runtime || easy and simplle approach || o(n)||c++||
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
```cpp []
class Solution {
public:
    int scoreOfString(string s) {
        int n = s.size();
      if(n<2) return 0;

      int sum =0;
      for(int i =0 ;i<n-1 ;i++){
        sum+=abs(s[i] - s[i+1]);
      }
      return sum;
    }
};
```
['C++']