Synechron interview question

Java stream API simple question.