Uber interview question

object oriented design, binary tree