IBM Interview Question

Write a Code to implement circular buffer