Pregunta de entrevista de Indeed

Assessment question over arrays.