How access the head of both linked list

how access the head of both linked list

@sksumitkumardiwaker,
Create 2 objects of the linked list class and pass them into the merge method.
You can create:
LinkedList list1 = new LinkedList();
and
LinkedList list2 = new LinkedList();

And then basically use:
Node ans =merge_sorted_list(list1.head,list2.head);