Deloitte Interview Question

Reverse the string without using inbuilt functions.