Question d’entretien chez Amazon

A leetcode question using DFS to solve and 2LP questions.