Pergunta de entrevista da empresa Accenture

Stack and Queue question asked.