Pergunta de entrevista da empresa Bloomberg

Asked to design a FIFO "trading system" which was a Python class with 3 methods. Had a method to get the minimum value in the internal stack in O(1), required a monotonic stack. Asked to get k minimum values after, used a heap.