Amazon Interview Question

Something about binary search trees