Capgemini interview question

Program on Java 8 streams