Create solution4.cpp