Capgemini Interview Question

Java 8 Functional Programming Code optimization