✅ Easiest One Liner || Beats 100% 😉
Code\ncpp []\nclass Solution {\npublic:\n    int scoreOfString(string s) {\n        int ans=0;\n        for(int i=0;i<s.length()-1;i++) ans+=abs(s[i]-s[i+1]);\n
# Code\n```cpp []\nclass Solution {\npublic:\n    int scoreOfString(string s) {\n        int ans=0;\n        for(int i=0;i<s.length()-1;i++) ans+=abs(s[i]-s[i+1]);\n        return ans;\n    }\n};\n```\n# Upvote ? \uD83D\uDE0A
['String', 'C++']