Microsoft Interview Question

Implement krushkal algorithm for mst