Deloitte Interview Question

How does iterative.vs recursive algorithm work