def createGetArray(varName, values):
    """\
Create a URL string to represent a named array of values for HTTP GET requests.

Example:
    urlArray = createGetArray('friends', ['Alice', 'Bob', 'Charlie', 'Drusilla'])
    print(urlArray)

Output:
    &friends[]=Alice&friends[]=Bob&friends[]=Charlie&friends[]=Drusilla

Return: The URL-encoded array string.

Parameters:
  * varName: The name of the array.
  * values: A list of string values.
"""

    output = ''
    for v in values:
        output = output + '&{}[]={}'.format(varName, v)
    return output