Your question is Merge Two Sorted Arrays. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given two arrays of integers nums1 and nums2, both sorted in non-decreasing order, return a new array containing all elements from both arrays in non-decreasing order. The function should preserve duplicates and handle empty arrays correctly.
def merge_sorted_arrays(nums1, nums2):