Morgan Stanley interview question

How does a hashmap works