Solve Chocolate Feast problem