Added problem 1 C++ solution