Determine earliest collision among moving cars | Waymo Interview Question