Pregunta de entrevista de Kickdrum

System Design Graph traversal question