private static Node findByIndex(Node root, int ip) {
        int i = 0;
        while (i < ip) {
            root = root.next;
            i++;
        }
        return root;
    }
Why Did you create this class? what does it do?
src/adventofcode/Spinlock_17.java