Pregunta de entrevista de Google

normal for round one, a Iteration Function code question for R2