Create mailbox functionalities without using in-built mailbox

One of my colleague has been asked with this question in an interview recently.
How can we create a mailbox with using in_built mailbox?
If you can add code as well, it will be helpful

In reply to bachan21:
https://verificationacademy.com/forums/systemverilog/question-internals-mailbox-built-class#reply-53565