Infosys interview question

hashmap and internal working