IBM Interview Question

Easy Leetcode question on arrays