Airtime interview question

Binary tree implementation