Domanda di colloquio di Trexquant Investment

A recursion problem for the technical interview.