Test interview question

How to balance a tree