Pregunta de entrevista de Activision Blizzard

Two Programming tests. One based on a loop and the other based on user input