Tech Mahindra Interview Question

Basic OOPs