Frage im Vorstellungsgespräch bei Cognizant

Reverse a string , swap without using temporary variable