Pregunta de entrevista de Scytalys

Java streams, lambda expressions and their if they are mutable. An algorithmic exercise.