judge the palindrome according to the definition