Pregunta de entrevista de Adobe

Topological sort in graph, longest sequence in array