Pergunta de entrevista da empresa CPU Tech

Read a string and replace it in the reverse order in-place (without writing it to an additional memory location)