Infosys interview question

Nothing so difficult