Macquarie Group Interview Question

write a short code to reverse a string. This wasn’t the main coding interview