Question d’entretien chez Amazon

Write a function that determines the longest palindrome in a given string.