Datadog interview question

Code a Buffered File Writer