Splunk interview question

Hackerrank type coding challenge eh