Datadog Interview Question

Build a data structure that buffers before writing to a file