Reverse String

C++

Given a string, write the function for reversing it.

Your Logic: