re-implement C1Q2

using std::reverse to reverse char star string