Infosys Interview Question

Basic dsa question about map