Pregunta de entrevista de Finoit

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