Fortinet Interview Question

Reverse a string