Backbase interview question

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