Create solution6.cpp