Intersection point of Linked List

https://ide.geeksforgeeks.org/pWrG2h1FN7

HI, can you help me which case I am missing here I am failing one test case?

@abhishekjohri98,
In case there is no intersection element, your code will give a null pointer exception:
Example:
3
1 2 3
3
4 5 6
Correct Output: -1
Your output: Nullpointer exception

If the linked lists are not intersecting at any point then print -1. as mentioned in the question

Thank you I got it now