Splunk Interview Question

Medium level Leetcode questions with some modifications