Domanda di colloquio di Uber

Write an algorithm which checks for cyclical dependencies in a graph