Infosys Interview Question

Basic OOP and