IBM interview question

Java8 stream operations