Fiserv interview question

Design a Java Stream API. Started with a simple filter, Follow-up questions were about making it Generic and improving it