Pregunta de entrevista de Glynk

questions on strings and some patterns