you give 0indexed integer array num length nthe average difference index absolute difference average 1 element num average n 1 element both average round near integerReturn index minimum average difference if multiple index return small onenotethe absolute difference number absolute value differenceThe average n element sum n element divide integer division nThe average 0 element consider 0 example 1input num 253953output 3explanation the average difference index 0 2 1 5 3 9 5 3 5 2 1 25 5 2 5 3 the average difference index 1 2 5 2 3 9 5 3 4 7 2 20 4 3 5 2 the average difference index 2 2 5 3 3 9 5 3 3 10 3 17 3 3 5 2 the average difference index 3 2 5 3 9 4 5 3 2 19 4 8 2 4 4 0 the average difference index 4 2 5 3 9 5 5 3 1 24 5 3 1 4 3 1 the average difference index 5 2 5 3 9 5 3 6 0 27 6 0 4 0 4the average difference index 3 minimum average difference return 3example 2input num 0output 0explanationthe index 0 return 0the average difference index 0 0 1 0 0 0 0 constraints1 numslength 1050 numsi 105