Given two integer arrays nums1 and nums2, each sorted in non-decreasing order, merge them into a single sorted array and return it.
Input
nums1 (may be empty)nums2 (may be empty)Output: the merged sorted array, space-separated.
1 2 3 2 5 6
1 2 2 3 5 6
1
1
Run your code against the sample tests, or Submit to run the full suite.