GlobalLogic Interview Question

Hashmap internal working