Error using While loop. Assign: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

divisionNames has 3 elements so it is returning 2 after subtracting 1 which is alright. And the value of “i” is 0 which keeps incrementing