Deloitte interview question

Reverse the string without using inbuilt functions.