CCC03S5 - C++ Solution