Question d’entretien chez Amazon

LeetCode Medium and sometimes hard question