from random import randint


def random_array(size = 20, max = 0):
    """
    CREATE TEST INPUT AS ARRAY(LIST)
    ARG size: LENGTH OF ARRAY
    ARG max: MAXIMUM VALUE FOR ELEMENTS
    """
    if max == 0:
        max = size * 3
    return [randint(0, max) for _ in range(size)]