Problem 12 in C++