結果 : longest palindrome leetcode solution python