Problem 158 · Hard
Read N characters with multiple calls to read() with caching.
Open the interactive visualisation