Workday interview question

Reverse a Char string.