you give 0indexed integer array num size n positive integer kWe index range k n k good follow condition satisfiedThe k element index nonincrease orderthe k element index nondecrease orderreturn array good index sort increase order Example 1input num 2111341 k 2output 23explanation there good index array index 2 the subarray 21 nonincrease order subarray 13 nondecrease order index 3 the subarray 11 nonincrease order subarray 34 nondecrease ordernote index 4 good 41 nondecreasingExample 2input num 2112 k 2output Explanation there good index array Constraintsn numslength3 n 1051 numsi 1061 k n 2