Design a fixed-capacity circular queue | Amazon Interview Question