private static int solve2(List<Integer> list) {
        int count = 0;
        int current = 0;
        while (current < list.size()) {
            int value = list.get(current);
            if (value >= 3) {
                list.set(current, value - 1);
            } else {
                list.set(current, value + 1);
            }
            current += value;
            count++;
        }

        return count;
    }
Why Did you create this class? what does it do?
src/adventofcode/Interrupt_5.java