[palindrome] completed sub case 1