Implement Buffer File Write Class

Asked at Datadog · Coding Questions · Difficulty: Medium · Last asked Jul 15, 2026

Implement a `BufferFileWrite` class based on the given `FileWrite` class. Implement buffer file `write()` and buffer file `flush()` methods. After implementation, write some test cases and run the code to check.

Loading the problem…