Question d’entretien chez Amazon

Medium difficulty leet code questions.