Circularly Linked List Leetcode Question