Pergunta de entrevista da empresa Finoit

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