Amazon Interview Question

asked to explain the spanning tree protocol