Question d’entretien chez Mastercard

Graph-based problem (medium-hard) in first round