Bloomberg Interview Question

Write code to reverse a string.