algo4: stack: validate_parentheses: Revisited