Bayer interview question

Functional programming