Concept Flow - Min Stack Design
Push value
Compare with current min
If smaller or equal, push to min stack
Push to main stack
Pop value
Check if popped equals min stack top
If yes, pop min stack
GetMin returns top of min stack
The Min Stack keeps track of all values and the current minimum using two stacks. When pushing, it updates the min stack if needed. When popping, it updates the min stack accordingly. GetMin returns the current minimum.
