Pregunta de entrevista de Rippling

Two problems on strings. One Dynamic Programming. One Graphs