Infosys Interview Question

hashmap and internal working