Capgemini Engineering interview question

Write a program to reverse a string without using in build methods.