✅EASY AND SIMPLE SOLUTION✅(Beats 100.00% of users with C++)
\n\n# Code\n\nclass Solution {\npublic:\n    int scoreOfString(string s) {\n        int score = 0;\n        \n\n        for(int i=0; i<s.size()-1; i++){\n      
\n\n# Code\n```\nclass Solution {\npublic:\n    int scoreOfString(string s) {\n        int score = 0;\n        \n\n        for(int i=0; i<s.size()-1; i++){\n            if(int(s[i]) > int(s[i+1])){\n                score = score + int(s[i]) - int(s[i+1]);\n            } else {\n                score = score + int(s[i+1]) - int(s[i]);\n            }\n        }\n        return score;\n    }\n};\n```
['C++']