you give integer array num in pick index 0 numslength increment numsi 1return minimum number move value num uniquethe test case generate answer fit 32bit integer Example 1input num 122output 1explanation after 1 array 1 2 3example 2input num 321217output 6explanation after 6 move array 3 4 1 2 5 7it show 5 move impossible array unique value Constraints1 numslength 1050 numsi 105