Splunk interview question

Coding - OOP modelling ; recursion