TechZert interview question

reverse a string without inbuilt function.