Pergunta de entrevista da empresa Avanade

Whiteboard question: reverse a string without using the reverse function