JLR interview question

Invert a string without reverse.