write a python function that determines whether a given list of integers represents a valid upc. use a loop to apply the algorithm described here. upc codes can be different lengths, so don’t assume it’ll always be exactly 12 digits.