Dell Technologies interview question

implement a mempool