Pergunta de entrevista da empresa Cognizant

Reverse a string , swap without using temporary variable