Adding solution for problem 61 in C++.