The code is running fine but while submitting on hackerblocks, the only test case is not being passed
Here is the link of the code given below:
Doubt in Merge Sorted Linkrd List
you have two make two linked list but you are making two head and two function for each head it is not logically correct what you have to do see in the code i have modified your main function now accordingly do some modification in your fuction