Recursion replacing a for loop?

inside the function multiply([2, 5, 4], 3) you have the line return multiply([2, 5, 4], 2) * 4