Stone Cobra interview question

How to make a recursive algorithm none recursive