Question d’entretien chez Amazon

given a string, find the longest palindrome from leetcode