Amazon interview question

Minimum spanning tree and another graph related problem