Oracle interview question

Leetcode Easy Arrays Programming Problem