Infosys interview question

defect