Sibisoft Interview Question

OOP understanding and Recursive function