Circular linked list pronblem

i cant understand the way the input is given
eg in the given input:
1 2 3 4 5 2 3 -1
so here how i can i implement the logic that it is looping at 2 i ahve comfusion because next node data 3 is also given
but in circular LL the next node of last node is the first node only here it is different please help.

please refer to the circular linked list tutorial provided in the course

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.