Frage im Vorstellungsgespräch bei Cognizant

Explain the algorithm to reverse the characters in a string: technical question