Domanda di colloquio di Cognizant

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