Pregunta de entrevista de Snowflake

Dynamic programming questions, String manipulation