Nihilent interview question

OOP Concept