public void addFromBack(ArrayList<ArrayList<Integer>> result,
			ArrayList<TreeNode> children) {
		ArrayList<Integer> tempArrayList = new ArrayList<Integer>();
		for (int i = children.size() - 1; i >= 0; i--) {
			tempArrayList.add(children.get(i).val);
		}
		result.add(tempArrayList);
	}