Question d’entretien chez Amazon

LC hard problem with matrix/graphs