Minimize the difference between maximum and minimum elements of the array after performing the increment or decrement on every element of the array.