you give 0indexed integer array num in step remove element numsi numsi 1 numsi 0 numslengthreturn number step perform num nondecrease array Example 1input num 5344736118511output 3explanation the following step perform Step 1 5344736118511 544761111 Step 2 544761111 5471111 step 3 5471111 571111571111 nondecrease array therefore return 3example 2input num 457713output 0explanation num nondecrease array therefore return 0 Constraints1 numslength 1051 numsi 109