Intuit interview question

Recursion, design patterns.