Palindrome solution