Pregunta de entrevista de Pinterest

Leetcode question on finding paths in a graph problem.