Problem 20 · Easy
Validate balanced parentheses using a stack to achieve O(n) time.
Open the interactive visualisation