Pregunta de entrevista de Backbase

Was given a coding questions and was asked to implement using streams.