Question d’entretien chez Amazon

two algorithm s are about the string