Pregunta de entrevista de Eightfold

two graph based traversal questions