How do two pointers check whether a linked list has a cycle? | Two Pointers and Sliding Window question · AnyPrep