Frage im Vorstellungsgespräch bei Citadel Securities

Second question in interview was basic topological sort.