Answer:
Explanation:
We can divide array A into two arrays B , C
B would contain the sorted n elements.
C would contain the unsorted m elements.
Now we can sort C using merge sort with worst time complexity mlogm.
When you will have array C sorted you can concatenate with B and put it back in A.