Pergunta de entrevista da empresa Groupon

Binary tree question and past projects.