Question d’entretien chez WD

Asked to code a for loop in Java