Normalize solution to work with input being either palindrome or any
number.