Infosys interview question

Nothingwas difficult at this time