Test Interview Question

How to balance a tree