On Interview Question

Stack Queue Match closing and opening brackets using stack