Infosys Interview Question

Not so difficult, should have basic knowledge