Cognizant Interview Question

Reverse a string , swap without using temporary variable