Create solution2.cpp