Pregunta de entrevista de WD

Asked to code a for loop in Java