Pergunta de entrevista da empresa Qualcomm

Reverse a string without using a temporary variable for swapping