Apple interview question

How to deduplicate streamed data