Quartech interview question

Write pseudo code to reverse a string