Domanda di colloquio di Booking Holdings

Graph traversal problem and some theory