AstraZeneca interview question

It was pattern programming