void incCounter(List<int> c) { c[3]++; if (c[3] != 0) { return; } c[2]++; if (c[2] != 0) { return; } c[1]++; if (c[1] != 0) { return; } c[0]++; }