UST interview question

Streams code and basic oops