Navionics interview question

Binary search tree