Activision Blizzard Interview Question

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