PayPal Interview Question

Building Bridges problem-- cities on 2 ends, connect them