Question d’entretien chez NVIDIA

Standard algorithmic question as on leetcode