Splunk interview question

Algo, past project, leetcode style