Splunk interview question

Coding questions thoroughly