Infosys interview question

Basic dsa question about map