Exercises for blog posts on converting recursive algorithms into iterative algorithms