Splunk Interview Question

Coding interview with three problems, general algorithms and data structures related.