Deutsche Bank Interview Question

How to read an infinite buffer and observe your changes