the point isn't really the specific problem, but do you understand the concept of recursing over data structures like registry and directory hierarchies. a lot of screening problems are kinda artificial and the real-world answer is you wouldn't do that at all, but rather use some library or language feature rather than reinventing the wheel.
United Kingdom