Pregunta de entrevista de Fidelity Investments

array question and string question on the test