Pregunta de entrevista de Veeva Systems

some array traversal problems. one with strings