Define these methods in an interface called `LinkedList`, and implement this interface in a class called `CircularLinkedList`. Additionally, add a private method `next(Node node)` in this class to use it for travers the list in other methods. This method should print the message "Go to next node\n" each time it is called.
If the index is over the size then you have to keep going using `next` method to achieve the given index.
A circular linked list is a linear data structure where each element is a separate object called a node. Each node contains two fields:
-`value`: stores the data.
-`next`: stores a reference to the next node in the list.
The first node is called the head of the list and the last node in a circular linked list points back to the first node, forming a circle. The list allows for efficient insertion and deletion of elements. However, accessing an element by its index requires traversing the list from the head to the desired position.
### Expected Interface
````java
public interface LinkedList {
int at(int index);
void add(int value);
void remove(int index);
int size();
}
### Expected Class
```java
public class CircularLinkedList implements LinkedList {
private Node head;
private class Node {
int value;
Node next;
Node(int value) {
this.value = value;
this.next = null;
}
}
@Override
public int at(int index) {
// Implementation for accessing an element by its index
}
@Override
public void add(int value) {
// Implementation for adding an element at the end of the list
}
@Override
public void remove(int index) {
// Implementation for removing an element by its index