Input: s ="hello"Output: 13Explanation:
The ASCII values of the characters in s are:'h'=104,'e'=101,'l'=108,'o'=111. So, the score of s would be |104-101|+|101-108|+|108-108|+|108-111|=3+7+0+3=13.
Example 2:
1
2
3
Input: s ="zaz"Explanation:
The ASCII values of the characters in s are:'z'=122,'a'=97. So, the score of s would be |122-97|+|97-122|=25+25=50.