test.cpp

test.cpp solution