Question d’entretien chez Deloitte

Reverse the string without using inbuilt functions.