Squarepoint Capital interview question

The coding question was on recursion