public static ArrayList<Integer> insertDigit(ArrayList<Integer> inter,
			int num, int position) {
		ArrayList<Integer> newArrayList = new ArrayList<Integer>();
		int index = 0;
		while (index < position) {
			newArrayList.add(inter.get(index));
			index++;
		}
		if (index == position) {
			newArrayList.add(num);
		}
		while (index < inter.size()) {
			newArrayList.add(inter.get(index));
			index++;
		}
		return newArrayList;
	}