Linked List Intersection Leetcode Javascript Question