Given a linked list represented as an array of values and a pos value indicating where the tail connects to (0-indexed), determine if the linked list has a cycle.
The pos parameter indicates the index of the node that the tail's next pointer is connected to. If pos is -1, there is no cycle.
Return true if there is a cycle, false otherwise.
Note: In a real linked list, you would use Floyd's cycle detection. Here, since we have the position, you can determine the answer directly from the input.