Activision Blizzard interview question

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