Amazon interview question

asked to explain the spanning tree protocol