g Define a function called repeat() that takes three arguments: a function to be applied (which takes one argument (of type X) and returns a value of the same type X), a positive integer (the number of times to apply), and a starting value (of type X). This function should apply the given function to the starting value the specified number of times and return the result.