Splunk Interview Question

Average difficulty leetcode question involving arrays.