Qualcomm Interview Question

circular buffer