2-7 Palindrome solution