distributeChocolate
to compute the minimum number of chocolates distributed such that the above conditions are satisfied.distributeChocolate("{1,5,7,1}") ==> 7
array
of points which 4
different students have been allotted. The minimum number of chocolates distributed i.e. the output is 7
.public static int distributeChocolate(int[] points) { }
C
Java
Python