G2i interview question

how to filter/stream/sort a two java data abstractions