Intersection of LL

Not able to get the error in my code that results in different output.
Linked List

Ques.-> https://hack.codingblocks.com/contests/c/945/933
Attempt ->https://ide.codingblocks.com/s/111433