added problem1.cpp