Merge Two Sorted Lists (LeetCode 21)The problem You get the heads of two linked lists, each already sorted in non…