Given a linked list, return the index of the node where the cycle begins, or -1 if there is no cycle. The list is given as an array of values plus pos, the 0-based index that the tail's next pointer connects to (pos = -1 means no cycle). Return the cycle's start index. Input: '[list], pos'.
Input: '[list], pos'.
Output: Integer — cycle start index or -1.
Input: [3,2,0,-4], 1
Output: 1
Explanation: Tail connects to index 1.Input: [1,2], 0
Output: 0
Explanation: Cycle starts at head.Input: [1], -1
Output: -1
Explanation: No cycle.0<=n<=10^4-1<=pos<n