WD Interview Question

Write code to reverse a string.