Domanda di colloquio di Amazon

Minimum spanning tree and another graph related problem