Splunk interview question

Data structures question that was equivalent to leetcode medium