Pregunta de entrevista de Microsoft

coding question on dsa question on arrays