See first understand recursion and iteration is a method/approach of solving a problem, so to solve a problem you can follow iterative way or recursive way which ever is suitable for you.

In iteration we give importance to Initial value and condition till which it will iterate while in case of recursion you will see Base case (When to stop recurring).

So i feel it's all about ur logic of solving the problem, If you want convert a iterative solution to recursive solution

So think about ur base case/s [When to stop] then you can easily convert it to recursive approach.

But to give you a note recursive needs more space as we are creating multiple stack frames each time we call the same function.