Merck Interview Question

To implement a recursive function,