you give integer array num 0indexed in operation choose element array increment 1for example num 123 choose increment nums1 num 133return minimum number operation need num strictly increasingan array num strictly increase numsi numsi1 0 numslength 1 an array length 1 trivially strictly increase Example 1input num 111output 3explanation you follow operations1 Increment nums2 num 1122 increment nums1 num 1223 Increment nums2 num 123example 2input num 15241output 14example 3input num 8Output 0 Constraints1 numslength 50001 numsi 104