Amazon interview question

coding question about longest palindrome