Morgan Stanley interview question

How does hashmap work internally? Strategy design Pattern Multithreading