Pregunta de entrevista de Cisco

That brackets problem which you solve using stack.