update on min stack solution.