Create a program in Python that takes an array of integers and returns a new array with each element multiplied by its index.
[6, 3, 10, 4]
def multiply_by_index(numbers):
    for i in range(len(numbers)):
        numbers[i] *= i
    return numbers