結果 : recursive function to check if a string is palindrome python