Pregunta de entrevista de ServiceNow

Two array related programming questions.