BOLT Interview Question

implementing a queue, basic SQL