J.P. Morgan Interview Question

reverse a string without stl