Qualcomm interview question

Reverse a string without using a temporary variable for swapping