Pergunta de entrevista da empresa On

Stack Queue Match closing and opening brackets using stack