Pergunta de entrevista da empresa Google

basic tree implementation, and a weirder medium difficulty one afterwards