Question d’entretien chez Amazon

Algorithm questions that can be found on LC.