MathWorks Interview Question

Explain/write a recursive function.