SAP interview question

Implement circular stack.