Union Of Two Linked Lists Leetcode Python