Problem 1855 · Medium
Maximize j-i subject to i <= j and nums1[i] <= nums2[j].
Open the interactive visualisation