Click the button to loop through the indices of an array with four elements, but exit the loop when i is equal to "3".