UBS Interview Question

Write a pseudo code to balance a bindary tree.