ECON Interview Question

reverse the string