Question d’entretien chez Amazon

Leetcode level problem very difficult