Given the head of a linked list, determine if the list has a cycle.
head = [3,2,0,-4], pos = 1
true
head = [1,2], pos = 0
head = [1], pos = -1
false