Amazon Interview Question

coding question about longest palindrome