Naive solution for BalancedBinaryTree