Applied Materials Interview Question

Build stack with find min in o(1)