However, once you understand the iterative version, it's probably easier to understand how the recursion is actually working.