Let's write a function to find the median of two sorted arrays that can be the same or of variable length.
Problem statement
Implement a function that takes two sorted arrays, which may have different lengths and finds the median of the two arrays.
...