Infosys interview question

All questions were simple