3.21 Filter out elements from a list that do not satisfy a predicate implemented with flatMap