I am not able to solve this question

I think this is the minimum number of operations required to make array element equal

But how to tackel with second condition given in the problem

second condition say you can add 1 ammo, ( which when even there is not enough ammo to share among all players. )

example suppose there are two player and commulative ammo of this team is 7.
even if you exchange these ammos, you can’t make it equal among the two players so you would have to get one more ammo for the team (which is defined by second condition). so total ammo would be 8, and can be equally shared (4 , 4).