GEICO interview question

leetcode medium. largest palindromic number from a string.