Siemens Interview Question

Reverse a string using data srtuctures