Pregunta de entrevista de Pursuit Software

Question based on array and string concept