Arista Networks Interview Question

(first interview) Design and implement a circular queue in C.