Intersection Of Two Linked Lists Python Hackerrank