Kott Software interview question

OOps concepts