Pergunta de entrevista da empresa Two Sigma

One graph and one recursive backtracking problem