Capgemini interview question

Java design pattern Java8 stream