Report Garden interview question

Question on arrays using loops.