Pregunta de entrevista de Standard Chartered Bank

Streams questions and Java 8 features