Sibisoft interview question

OOP understanding and Recursive function