MathWorks Interview Question

trees, recursion