結果 : how to solve palindrome problem in python