How do you reverse a string in C or C++ without requiring a separate buffer to hold the reversed string?
Reverse a string in place (visualization):