Infosys interview question

Data Structures