Pregunta de entrevista de BeaconFire Solution

the coding problem is the string pattern