Anduril Interview Question

Debug a circular queue in C.