Tripadvisor Interview Question

code binary search tree in java