Find Earliest Fully Connected Time | Google Coding Question