Applied Materials interview question

Build stack with find min in o(1)