Doubt in approach

how do i build two linked list with intersection ?