HARMAN interview question

oops, streams in java , design based