Fixing error in the C++ solution for Problem 3
Problem 007, C++