Question d’entretien chez Palantir Technologies

Graph traversal related question. Hackerrank pair programming.