Infosys interview question

Reverse a string without using inbuilt functions.