Linked List Cycle Leetcode Solution In Java