iCIMS interview question

Recursion optimization