Amazon Interview Question

binary search tree and linked list