Create Problem1.cpp

Add c++ version of Problem 1