Implement buffered file writer with concurrency support | Datadog Interview Question