EAB Interview Question

Leetcode easy question involving arrays