Ruby one-liner, beats 100%/100%
\n# @param {String} s\n# @return {Integer}\ndef score_of_string(s)\n  s.bytes.each_cons(2).sum { (_1 - _2).abs }  \nend\n
```\n# @param {String} s\n# @return {Integer}\ndef score_of_string(s)\n  s.bytes.each_cons(2).sum { (_1 - _2).abs }  \nend\n```
['Ruby']