Anonymous interview question

reverse a string without using reverse function