Citadel Securities Interview Question

Graph Related - Depth First Search