Pergunta de entrevista da empresa Squarepoint Capital

The coding question was on recursion