AbbVie interview question

coding question related to arrays