Pergunta de entrevista da empresa Global Relay

Reverse String. How can you optimise it.