UBS Interview Question

Reverse a string just psedocode