Pergunta de entrevista da empresa Amazon

coding question about longest palindrome