Infosys interview question

Programs on collections