Amazon interview question

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