public int[] returnPicks(int position, int friends, int picks) {
		int i = 1;
		List<Integer> res = new ArrayList<Integer>();
		while (i <= picks) {
//			System.out.println(i);
			for (int j = 1; j <= friends && i<=picks; j++, i++) {
//				System.out.println("pier i -> "+i+", j ->"+j);
				if (j==position) {
					res.add(i);
				}
			}
			
			for (int j = friends; j > 0 && i<=picks; j--, i++) {
//				System.out.println("pier i -> "+i+", j ->"+j);
				if (j==position) {
					res.add(i);
				}
			}
		}
		i=0;
		int[] result = new int[res.size()];
		for (Integer integer : res) {
			result[i++] = integer;
		}
		return result;
	}