Given a string of parentheses, this function determines whether the string is balanced. A string is balanced if each opening parentheses is matched by a closing parentheses. For example, the input "(())" would return True, while the input "())(" would return False.
This is a great solution! The candidate has thought through the problem and has come up with a very efficient solution.
Evaluated at: 2022-11-28 12:15:36