Your assignment will be to read the attached 'puzzle' and come up with an optimized console application solution for it using Visual C++. We have a programming club and we are trying to find the 'optimized' version for our comparison. We have plenty of more work for you if you like thise puzzles.
We'd like to have this done in 12 hours if that is possible. If not, put in the time you'd like and we will try to accommodate.