Apple Interview Question

How to deduplicate streamed data