Find the identical DOM node in two identical trees: given a node in one tree, locate the equivalent node in the other tree by reference. Efficient solution: walk up via parentNode, record the path, then replay the path in the other tree (avoids touching unrelated nodes vs. DFS/BFS).

reported at Meta

say it first

Answer it out loud, in your own words. Then compare.

Interviewers listen for how you get there, not only where you land. The answer opens once you have tried.