simple and easy understand solution
if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n\n# Code\n\nclass Solution {\npublic:\n    int scoreOfString(string s) \n    {\n        int res = 0, n = s
# if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n\n# Code\n```\nclass Solution {\npublic:\n    int scoreOfString(string s) \n    {\n        int res = 0, n = s.size();\n        for(int i=0;i<n-1;i++)\n            res += abs((s[i]-\'a\') - (s[i+1]-\'a\'));     \n        return res;\n    }\n};\n```
['String', 'C', 'C++', 'Java', 'C#']