How to create linked list with intersection?

In this question inputs are just number not a head pointer to any linked list. Then how to take input in this problem ?

hi, all the question related to linked list are in the format that is stated in this question

u have to create a linked list with the values specified and return the node value where the value for both the 2 linked list are same.