How would you use a generator to implement a tree traversal (DFS) without recursion stack concerns? | Iterator and Generator | javascript Interview Questions | NextRound.in