Domanda di colloquio di Amazon

Graphs - finding segment between two child nodes