solve palindromic-palindrome