public int maxPathSum(TreeNode root) {
        if (root == null) {
            return 0;
        } else {
            gMax = Integer.MIN_VALUE;
            maxHandler(root);
            return gMax;
        }

    }