Highest Value Palindrome Hackerrank Solution