What's the role of Spanning Tree Protocol (STP) and how is the root bridge elected?

Technical