Pergunta de entrevista da empresa PayPal

Round 2 - DS/Algorithm problem related to the tree (I don't really recall the exact problem)