Amazon interview question

Write binary search in tree