Microsoft interview question

Leetcode easy question about arrays