Robert Bosch interview question

reverse string without string functions