BlackRock Interview Question

How Hashmap works. How to avoid collission