CTCI 4.1 test if a tree is balanced.