Use loops to express repeated work directly and accumulate values in a way the next engineer can verify. Interviewers like to hear why the loop exists, not only how the syntax looks.
The strongest answers connect the feature to reasoning and tradeoffs instead of reciting syntax.