Material interview question

reverse string without use of api