Design a queue and analyze tradeoffs | Optiver Interview Question