Citadel Securities Interview Question

Cycle detection in a directed graph