Solve classical stack-based problems, such as matching nested brackets or evaluating postfix expressions.