Question d’entretien chez Wells Fargo

String chain problem that requires recursion or DP.