Roche interview question

The coding exercises varied from easy to intermediate level