結果 : reverse a string and check for palindrome in python