Infosys Interview Question

All the questions were basic