Pergunta de entrevista da empresa Adobe

Topological sort in graph, longest sequence in array