parentheses

uses a stack to determine whether its parentheses are properly balanced