Simple C++ , One liner
 # Intuition  \n\n\n# Approach\n\nSimple approach: subtract adjacent character ASCII values and add them to the count or total.\n\n# Complexity\n- Time complexi
<!-- # Intuition -->\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\nSimple approach: subtract adjacent character ASCII values and add them to the count or total.\n\n# Complexity\n- Time complexity: O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    int scoreOfString(string s) {\n        int cnt = 0 ;\n        for(int i = 0 ;i < s.size()-1 ; i++){\n            int a = abs(int(s[i] - s[i+1]));\n            cnt += a;\n        }\n        return cnt;\n    }\n};\n```
['C++']