Question d’entretien chez Amazon

solve frequently used string problem