BrowserStack interview question

Use recursion in the following code