Ivanti interview question

Ring buffer circular queue efficient