Two Sigma Interview Question

Write code to process multiple interleaving streams of data (from a text file) and output statistics on each stream.