Infosys interview question

About previous wirk