Intrinsic Interview Question

Implement and rebalance a tree structure