Synechron Interview Question

Java stream API simple question.