Question d’entretien chez Trexquant Investment

A recursion problem for the technical interview.