Meta interview question

The question involved deeply nested recursion and search