isPalindrome solved