Infosys Interview Question

Application based question on OOPs