Splunk interview question

Leetcode medium-level questions and follow up