Optiver Interview Question

Something about implementing a buffer