HP Inc. interview question

Java 8 features, code problem.