Xome interview question

Common ancestors in a binary tree, find duplicates in array