💯JAVA Solution Explained in HINDI
https://youtu.be/7cH7OZhUJrE\n\nFor explanation, please watch the above video and do like, share and subscribe the channel. \u2764\uFE0F Also, please do upvote 
https://youtu.be/7cH7OZhUJrE\n\nFor explanation, please watch the above video and do like, share and subscribe the channel. \u2764\uFE0F Also, please do upvote the solution if you liked it.\n\n# Subscribe:- [ReelCoding](https://www.youtube.com/@reelcoding?sub_confirmation=1)\n\nSubscribe Goal:- 500\nCurrent Subscriber:- 403\n\n# Complexity\n- Time complexity: O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n    public int scoreOfString(String s) {\n        \n        int ans = 0;\n\n        for(int i = 0; i < s.length()-1; i++) {\n            ans += Math.abs(s.charAt(i) - s.charAt(i + 1));\n        }\n        return ans;\n    }\n}\n```
['Java']