Indeed interview question

Assessment question over arrays.