Splunk interview question

Technical assignment covering on array traversal, sorting array