give integer array num size n return number value close 0 num if multiple answer return number large value Example 1input num 42148output 1explanationthe distance 4 0 4 4the distance 2 0 2 2the distance 1 0 1 1the distance 4 0 4 4the distance 8 0 8 8thus close number 0 array 1example 2input num 211output 1explanation 1 1 close number 0 1 large return Constraints1 n 1000105 numsi 105