Pergunta de entrevista da empresa Samsung Electronics America

Reverse a string without using any native JS functions or data structures.