Aurora Innovation interview question

Medium Graph-based Leetcode question, 40ish minutes to write the code.