Pergunta de entrevista da empresa Stone Cobra

How to make a recursive algorithm none recursive