HARMAN interview question

filter the stream