solved a palindrome question