Pregunta de entrevista de Amazon

leetcode easy problem - something with palindromes