Domanda di colloquio di Finoit

In second round the two questions were based on binary tree. Pretty complex.