Jump Game IIMediumAcceptance Rate 39.8%Find the minimum number of jumps to reach the last index.ExamplesExample 1Inputnums = [2,3,1,1,4]Output2Constraints1 <= nums.length <= 10^40 <= nums[i] <= 1000