give integer array arr target value target return integer value change integer large value give array equal value sum array get close possible absolute difference targetin case tie return minimum integerNotice answer neccesarilly number arr Example 1input arr 493 target 10output 3explanation when 3 arr convert 3 3 3 sum 9 that s optimal answerexample 2input arr 235 target 10output 5Example 3Input arr 6086425176272492129620204 target 56803output 11361 Constraints1 arrlength 1041 arri target 105