Splunk Interview Question

Typical leetcode medium and one hard question