Wrote functiont of find if the tree is balanced