HP Inc. Interview Question

Java 8 features, code problem.