BDIPlus interview question

Pseudo code for reversing a string.