Splunk Interview Question

Data structures question that was equivalent to leetcode medium