Meta Interview Question

Solve a Recursive function