OpenGov Interview Question

Write a function that accepts an array of functions, with the input for each subsequent function being the output of the previous function.