Pergunta de entrevista da empresa Microsoft

Write a function in C that takes a pointer to a string as its input, reverses the string, and returns a pointer to the reversed string.