BlackRock interview question

How Hashmap works. How to avoid collission