Infosys Interview Question

Just a paper exam