Qualcomm Interview Question

How to design a queue