Added C++ source for Problem 1