Tasktop interview question

Asked how to implement streams in Java