JTG Interview Question

Basic stack and string questions