Criteo Interview Question

Build an algorithm taking two lists as input and doing [something]. What if one list is a stream? What if this other one is? Both? What if you want to distribute it on several machines?