Solved min-stack.