Splunk Interview Question

Questions are Leetcode medium level problems