Jump Trading interview question

binary search tree