結果 : string palindrome in python using function