Intersection point two linked list

It is showing runtime error in first test case can you tell me why? https://ide.codingblocks.com/s/173936

@yath17 Your coding is giving run time error for the cases when length of one linked list is greater than the other.
Check your code and make changes to handle such case.
Example:
5
15 25 40 50 1
4
10 430 20 40