Solved Balanced Binary Tree problem.