Question d’entretien chez Infosys

Reverse a string without using inbuilt functions.