Domanda di colloquio di Pinterest

Leetcode question on finding paths in a graph problem.