Spot Trading Interview Question

design a queue