Merge two sorted linked lists l1 and l2 into one sorted list by splicing their nodes, and return its head.
Input
l1 (sorted, may be empty)l2 (sorted, may be empty)Output: the merged list's values, space-separated.
1 2 4 1 3 4
1 1 2 3 4 4
0
0
Run your code against the sample tests, or Submit to run the full suite.