4. C++ Write a Client function that merges two instances of the Sorted List ADT
ID: 3638752 • Letter: 4
Question
4. C++ Write a Client function that merges two instances of the Sorted List ADT using the following specification.MergeLists(SortedType list1, Sortedtype list2, SortedType& result)
Function: Merge two sorted lists into a third sorted list.
Precondition: list1 and list2 have been initialized and are sorted by key using function ComparedTo.
Postcondition: result is a sorted list that contains all of the items from list1 and list2.
b. Write function the definition, using an array based implementation.