Check connectivity between two subway stations | Bloomberg Interview Question