Question d’entretien chez State Farm

String leetcode question which was very easy.