Kotlin one line solution using zipWithNext
Intuition\nThe goal is to compute the "score" of a string, defined as the sum of absolute differences between the ASCII values of adjacent characters. This can 
# Intuition\nThe goal is to compute the "score" of a string, defined as the sum of absolute differences between the ASCII values of adjacent characters. This can be visualized as finding the "distance" between each consecutive character and summing these distances.\n\n# Approach\n - Iterate through the string and for each pair of consecutive characters, compute the absolute difference between their ASCII values.\n - Use Kotlin\'s `zipWithNext` function to create pairs of consecutive characters.\n - Apply a transformation on these pairs to calculate the absolute difference.\n - Use `sum` to aggregate these differences into a final score.\n\n# Complexity\n- Time complexity:\nThe time complexity is $$O(n)$$, where $$n$$ is the length of the string. This is because we iterate through the string once to create pairs and once more to sum the differences.\n\n- Space complexity:\n The space complexity is $$O(n)$$ because `zipWithNext` generates a list of pairs which, in the worst case, will have size $$n-1$$. Additionally, the intermediate list of differences also requires $$O(n)$$ space.\n\n# Code\n```\n\nclass Solution {\n    fun scoreOfString(s: String) = s.zipWithNext { a, b -> kotlin.math.abs(a - b) }.sum()\n}\n```
['Kotlin']