Pergunta de entrevista da empresa Cisco

That brackets problem which you solve using stack.