Palindrome problem v2.