Update solution1.cpp