Pregunta de entrevista de Amazon

They asked me a basic hashmap and palindrome question