Pregunta de entrevista de Cisco

Design and write a code for a cyclic buffer used in routers.