Union and Intersection of Linked Lists in Python

Prompt

Result