give integer array num size n return minimum number move require array element equalIn increment decrement element array 1test case design answer fit 32bit integer Example 1input num 123output 2explanationonly move need remember increment decrement element123 223 222example 2input num 11029output 16 Constraintsn numslength1 numslength 105109 numsi 109