Alarm.com Interview Question

Reverse a string