Leetcode Linked List Intersection Python