Infosys Interview Question

Play with stacks was a question there