HACKERRANK - Chocolate Feast

https://www.hackerrank.com/challenges/chocolate-feast