int helper(long[] map, Queue<Long> myQueue, Queue<Long> anotherQueue, int k, String[] a, boolean b) {
        for (int i = k; i < a.length; i++) {
            char index = a[i].charAt(4);
            if (a[i].startsWith("rcv")) {
                if (myQueue.isEmpty()) {
                    return i;
                }
                map[index] = myQueue.remove();
            } else if (a[i].startsWith("snd")) {
                anotherQueue.add(map[index]);
                if (!b) {
                    counter1++;
                }
            } else if (a[i].startsWith("set")) {
                if (Character.isAlphabetic(a[i].charAt(6))) {
                    map[index] = map[a[i].charAt(6)];
                } else {
                    map[index] = Long.parseLong(a[i].substring(6));
                }
            } else if (a[i].startsWith("add")) {
                if (Character.isAlphabetic(a[i].charAt(6))) {
                    map[index] += map[a[i].charAt(6)];
                } else {
                    map[index] += Long.parseLong(a[i].substring(6));
                }
            } else if (a[i].startsWith("mul")) {
                if (Character.isAlphabetic(a[i].charAt(6))) {
                    map[index] *= map[a[i].charAt(6)];
                } else {
                    map[index] *= Long.parseLong(a[i].substring(6));
                }
            } else if (a[i].startsWith("mod")) {
                if (Character.isAlphabetic(a[i].charAt(6))) {
                    map[index] %= map[a[i].charAt(6)];
                } else {
                    map[index] %= Long.parseLong(a[i].substring(6));
                }
            } else if (a[i].startsWith("jgz")) {
                if ((Character.isDigit(index) && index - '0' <= 0) ||
                    (Character.isAlphabetic(index) && map[index] <= 0)) {
                    continue;
                }
                if (Character.isAlphabetic(a[i].charAt(6))) {
                    i += map[a[i].charAt(6)];
                } else {
                    i += Integer.parseInt(a[i].substring(6));
                }
                i -= 1;
            }
        }
        return -1;
    }
Why Did you create this class? what does it do?
src/adventofcode/Duet_18.java