Reformat The String Leetcode Solution - Given an alphanumeric string i.e. the string has only lowercase alphabets (a-z) and digits(0-9).