Infosys interview question

All the questions were basic