Citadel Securities Interview Question

implement ring buffer structure, write and read function