[palindrome] redefined p[i]