Groupon interview question

Binary tree question and past projects.