NextSphere Interview Question

Data structure for circular queue