Linked List Loop Detection Leetcode Javascript Solution