Microsoft Interview Question

Easy to mid leetcode question on arrays