Microsoft Interview Question

Write a function that takes another function as an argument and then defines a third function which calls the first and second function recursively.