First node of the cycle
In a singly linked list, the last node may point back at an earlier node (or at itself), which makes a cycle. Write cycle_start(head): return the node where the cycle begins, or None if the list ends normally. Values can repeat, so compare nodes with is, not by value.
Do not modify the list. Aim for O(1) extra memory.
The tests call the provided run_cycle_start(values, pos): it builds the list, points the last node at index pos (-1 means no cycle) and returns the index of your node, or -1 for None.
Examples
run_cycle_start([4,8,15,16], 1)→1run_cycle_start([6,7], 0)→0run_cycle_start([1,2,3], -1)→-1