Fidelity Investments interview question

Reverse a string using stack