AKUNA CAPITAL Interview Question

Find the median of the subarray.