Domanda di colloquio di Optiver

One question was a graph problem