Listed as easy, description:
Given the array
candies and the integer
candies[i] represents the number of candies that the ith kid has.
For each kid check if there is a way to distribute
extraCandiesamong the kids such that he or she can have the greatestnumber of candies among…