Pregunta de entrevista de Upper Lake Processing Services

coding question based on for loop