OpenText interview question

Q. Write code using Java streams.