LeetCode
Min Stack
Click
here
for an explanation.