Beautystreams interview question

I was given a design task.