Question d’entretien chez Amazon

String based leetcode style question