public long s0lve2(String s) {
        if (s == null || s.length() == 0) {
            return -1;
        }
        String[] a = s.split("\n");
        long[] map0 = new long[128];
        long[] map1 = new long[128];
        map0['p'] = 0;
        map1['p'] = 1;
        Queue<Long> queue0 = new LinkedList<>();
        Queue<Long> queue1 = new LinkedList<>();
        int p0 = 0;
        int p1 = 0;
        while (true) {

            p0 = helper(map0, queue0, queue1, p0, a, true);
            p1 = helper(map1, queue1, queue0, p1, a, false);

            if ((p0 == -1 && p1 == -1) || (queue0.size() == 0 && queue1.size() == 0)) {
                return counter1;
            }
        }
    }
Why Did you create this class? what does it do?
src/adventofcode/Duet_18.java