Maximum candies

Problem Name:
Maximum candies
Site:HackerEarth
Links:
Tags: