functionIsBalanced_Solution(pRoot){returnorderTree(pRoot) !==-1;}functionorderTree(root) {if(!root) return0;let left =orderTree(root.left);let right =orderTree(root.right);if(left ===-1|| right ===-1||Math.abs(left-right) >1) return-1;returnMath.max(left,right)+1;}