Easiest Java Solution
\n\n# Code\n\nclass Solution {\n    public int scoreOfString(String s) {\n        int sum=0;\n        for(int i=1;i<s.length();i++)\n            sum+=Math.abs((
\n\n# Code\n```\nclass Solution {\n    public int scoreOfString(String s) {\n        int sum=0;\n        for(int i=1;i<s.length();i++)\n            sum+=Math.abs((int)s.charAt(i)-(int)s.charAt(i-1));\n        return sum;\n    }\n}\n```
['Java']