Infosys interview question

Not really , super easy