Infosys Interview Question

very easy