Solve "Linked List Cycle II" with O(n) space complexity