Merge Two Sorted Lists

Given the heads of two sorted linked lists, merge them into one sorted linked list and return the head of the merged list.

The merged list must preserve sorted order and must reuse the existing nodes by relinking them rather than copying values into a separate sorted array.

Examples
Input: [[1,2,4],[1,3,4]]
Output: [1,1,2,3,4,4]
Hints

Merge Two Sorted Lists

Given the heads of two sorted linked lists, merge them into one sorted linked list and return the head of the merged list.