Merge Sorted for Linked List , problem with test case

sir for the test case:

1

2

1 1

2

1 1

what should be the output?
what has to be done for the repeating element?
do i have to print it twice from both the linked lists or once?

Hey @arjunsabu99
output should be 1 1 1 1