Infosys Interview Question

Case based