you give integer array num you choose exactly index 0indexed remove element Notice index element change removalfor example num 61741choosing remove index 1 result num 6741choosing remove index 2 result num 6141choosing remove index 4 result num 6174an array fair sum oddindexe value equal sum evenindexe valuesreturn number index choose removal num fair Example 1input num 2164output 1explanationremove index 0 164 even sum 1 4 5 odd sum 6 not fairRemove index 1 264 even sum 2 4 6 odd sum 6 FairRemove index 2 214 even sum 2 4 6 odd sum 1 not fairRemove index 3 216 even sum 2 6 8 odd sum 1 not fairthere 1 index remove num fairexample 2input num 111output 3explanation you remove index remain array fairexample 3input num 123output 0explanation you fair array remove index Constraints1 numslength 1051 numsi 104