public static boolean isSameRec(TreeNode rootA, TreeNode rootB){
        if(rootA == null && rootB == null){
            return true;
        }else if(rootA == null || rootB == null){
            return false;
        }
        if(rootA.value != rootB.value){
            return false;
        }

        return isSameRec(rootA.leftNode, rootB.leftNode) & isSameRec(rootA.rightNode, rootB.rightNode);
    }