Hacker Rank

problems:  Angry Children and Chocolate Feast