Leetcode 3498. Reverse Degree of a String | Hello Interview