a ramp integer array num pair j j numsi numsj the width ramp j iGiven integer array num return maximum width ramp num if ramp num return 0 example 1input num 608215output 4explanation the maximum width ramp achieve j 1 5 nums1 0 nums5 5example 2input num 9810194041output 7explanation the maximum width ramp achieve j 2 9 nums2 1 nums9 1 constraints2 numslength 5 1040 numsi 5 104