Infosys interview question

Related to Data Structures.