Frage im Vorstellungsgespräch bei Amdocs

How would you reverse a string without using an inbuilt library?