Median of two sorted Array

The problem comes under hard category in Array problems.The problem is ,Given two sorted arrays num1 and num2 of size m and n respectively…