Arvig interview question

Explain what spanning tree protocol is.