Palindrome problem AQ solved