Oracle Interview Question

Easy-mid leetcode type question about arrays.