Splunk interview question

Reverse string elements in an array