Design a queue and analyze tradeoffs | Optiver Coding Question