Logos interview question

Write an algorithm to find duplicate nodes in a binary tree.