Domanda di colloquio di Twilio

they asked a graph theory coding question which was leetcode easy - medium range