Three different method to determin the palindrome