Linked List Intersection Leetcode Problems Javascript