Frage im Vorstellungsgespräch bei Amazon

Algorithmic question based on Binary trees. (Path between two nodes)