Splunk Interview Question

Process input string as needed