Frage im Vorstellungsgespräch bei Trexquant Investment

A recursion problem for the technical interview.