Alice wants to minimize the total number of
candies
she must buy. Example. She gives the students candy in the following minimal amounts: . She must buy a minimum of 10
candies
. Function Description. Complete the
candies
function in the editor below.
candies
has the following parameter(s): int n: the number of children in the class