Daffodil Software interview question

Promises and Recursive functions