Amazon Interview Question

They asked me a basic hashmap and palindrome question