Infosys interview question

very technical