Stone Cobra Interview Question

How to make a recursive algorithm none recursive