Pergunta de entrevista da empresa Apple

how to build queue wirh size limit with C