Infosys interview question

Process