Juniper Networks Interview Question

Reverse a string , with the most optimal way