Moogsoft Interview Question

Asked me to create a loop that modified items in an array.