Question d’entretien chez Aurora Innovation

Standard leetcode question with big O after