GE interview question

Tree-based questions.