public void flatten(TreeNode root) {
		if (root == null)
			return;
		goFlat1(root);
		// System.out.println(root.right.val);
		for (int i : node) {
			root.val = i;
			root.left = null;
			root = root.right;
		}

	}