




Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Generator functions can pass control to another generator function with "yield*" syntax.
Generator functions can recursively yield control to themselves.
You don't need to worry about recursion depth for this problem.