Amazon interview question

They asked me a basic hashmap and palindrome question