How to give custom input for this

how to give custom input for this problem

hey @guptanikhil898 follow these steps:

  1. Form linear linked list and store last node in some pointer(say tail)
  2. start traversing from head, and store pointer of any particular node in tail->next.
    This creates a cycle in your linkedlist.