[palindrome] completed sub case 2