Splunk Interview Question

Implement iterator.