Mental Model
We use a stack to keep track of opening brackets and check if each closing bracket matches the last opened one.
Analogy: Imagine you are stacking plates; each time you see an opening bracket, you put a plate on the stack, and each closing bracket means you take the top plate off and check if it matches.
Stack: [] (empty)
Expression: ( [ { } ] )
ā (start reading from left)