LogicMonitor interview question

Prims/Kruskals algorithm