Anonymous interview question

Hashmap and implementation Stack based questions