You are given two sorted arrays nums1 and nums2 of size m and n respectively.
Your task is to find the median of the two sorted arrays.
Return the calculated median as an integer rounded down.
nums1 = [1, 2]
nums2 = [10]
2
The merged array is [1, 2, 10] and its median is 2.
nums1 = [1, 2]
nums2 = [3, 10]
2
The merged array is [1, 2, 3, 10] and its median is (2 + 3) / 2 = 2.5. Rounded down, it is 2.
nums1 = [1, 2]
nums2 = [10]
2