Question d’entretien chez Amazon

Code an algorithm to find the longest palindrome in a string.