Domanda di colloquio di Amazon

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