Create check if a tree is balanced or not

It check if the tree is balanced or not. A tree is balanced if the absolute difference of heights between its left subtree and right subtree is less than or equal to 1.