Pregunta de entrevista de Amazon

coding question about longest palindrome