Exercise: Verify that asking for the first five long words does not call the filter method once the fifth long word has been found. Simply log each method call.
For your solution filter is being called on every element in the stream, you then limit the resulting stream to 5 elements.
The exercise only wants filter to be called five times.
I only post this issue as I do not know how to meet the exercise requirement myself, not to be petty.