Siemens Interview Question

Pseudo code on reverse of string