Pergunta de entrevista da empresa Amazon

Return the least common ancestor for N nodes in a tree given nodes that only have a parent pointer