Code for check if the binary tree is height-balanced.