Chocolate Feast - HackerRank Challenge