Amazon Interview Question

Coding question about binary search trees.