solve Min Stack