Pregunta de entrevista de Bloomberg

find common parents in a binary tree