Adding reverse.cpp