Problem 1.3 Calfflac - C++ Solution