UST Interview Question

Explain minimum spanning tree with example and code snippet