Meta interview question

JavaScript functions, how to find location of a node in a duplicate tree if you have the original node.