Backbase Interview Question

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