Using stack to implement recursive algorithm logic
Explain code with DocComment! Try out your own code!