Question d’entretien chez Two Sigma

Some recursion problem, likely leetcode hard