Amazon interview question

Binary Search Trees