Apple Interview Question

how to build queue wirh size limit with C