Write the definition of IntCircluarSLL class, which is a circular singly link list. This class should have a private member field tail which is a pointer to IntSLLNode that is a helper class used to represent the node in the linked list defining the integer variable info and a pointer next to IntSLLNode. Assume that IntSLLNode is available (the same one we saw in class).
The methods that you have to write for IntCircluarSLL are:
- addToHead(int x)//add after tail
- addToTail(int x)//add at tail
- deleteFromHead()
- isEmpty()