There's one small problem

We need to use a loop instead of recursion. The call stack gets too big.