Doubt on input and output format

can you please explain the input and output format for the problem

You have to create a circular linked list.
You can use set or hashmap for this

take input if any input repeats then set size will not increase(as set stores only different values) this is the point where you have to create cycle

you can see the compete code in Reference code if needed

Reference Code

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.