JAVA SOLUTION-BEATS 99%-SINGLE LINE SOLUTION
\n\n# Code\njava []\nclass Solution {\n    public int scoreOfString(String s) {\n        int res=0;\n        for(int i=0;i<s.length()-1;i++){\n            res+=
\n\n# Code\n```java []\nclass Solution {\n    public int scoreOfString(String s) {\n        int res=0;\n        for(int i=0;i<s.length()-1;i++){\n            res+=Math.abs((s.charAt(i)-s.charAt(i+1)));\n        }\n        return res;\n    }\n}\n```
['String', 'Java']