Create source code.cpp

This is the source code of the aforesaid problem statement