Question d’entretien chez Amazon

Leet code Medium problem and Hard Problem