Circular linked list

i am not able to understand how to take the inputs or ,how to define it is containg loop

Inputs are normal integer values only. The linked list will start from the first input and the loop is defined when any element is repeated. Like for 1 2 3 4 5 2 3 -1, it is like
1-2-3
5-4

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.