Pregunta de entrevista de Epic

Question on arrays, math puzzles, basic coding