BrowserStack Interview Question

Use recursion in the following code