Nagarro Interview Question

Inheritance and interface