T-Mobile interview question

Please explain how BGP works.