Deloitte interview question

How does iterative.vs recursive algorithm work