Cognizant interview question

Reverse a string , swap without using temporary variable