Problem Statement : Given two sorted linked list return a list with intersection of data stored in those two lists.
My concern here is that can we just do it using or manipulating pointer? What I am doing is that, I am creating a new list. Also, here’s one concept of dummy node which I am not getting.
Here is my solution