Infosys interview question

Data structures