Floyds Cycle Detection Algorithm Leetcode