private static int solve(List<Integer> list) {
        int count = 0;
        int current = 0;
        while (current < list.size()) {
            int value = list.get(current);
            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