Pergunta de entrevista da empresa Fidelity Investments

How to create stack and operations using array