Pergunta de entrevista da empresa UST

Explain minimum spanning tree with example and code snippet