Pergunta de entrevista da empresa Huawei Technologies

Reverse a string and copy it to the same pointer as initial string.