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

But it is still giving the error, I know my arrays have elements but I don’t know why it’s giving the error