Vertafore interview question

JAVA 8 stream API problems