Pregunta de entrevista de Consint

They asked me to inverse a string without using any function