Amazon Interview Question

given a string, find the longest palindrome from leetcode