Domanda di colloquio di Two Sigma

Debugging question and some tree/recursion question