Question d’entretien chez Visa Inc.

Coding question on graphs and difficulty is medium