Tripadvisor interview question

Find duplicates in a binary search tree