Squarepoint Capital Interview Question

The coding question was on recursion