Accenture interview question

String reversal code without using inbuilt functionality.