Pergunta de entrevista da empresa Bloomberg

find common parents in a binary tree