Infosys Interview Question

OOPs