Infosys interview question

Data Structure and Algorithms ,