Goldman Sachs Interview Question

Tough question about hashmapping