Amazon interview question

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