Fidelity Investments Interview Question

Reverse a string using stack