Create solution.cpp

added new CPP solution