write a function called valtimesindex which accepts an array of numbers and returns a new array with each value multiplied by the index it is at in the array:
0
Write a function called valTimesIndex which accepts an array of numbers and returns a new array with each value multiplied by the index it is at in the array: