Goldman Sachs Interview Question

How a hash map works?