Material Interview Question

reverse string without use of api