[palindrome] Completed case 1