Solution to the ChocolatesByNumbers problem in C++