Microsoft Interview Question

Leetcode easy question about arrays