recursion on the stack practice

recursing through popping and pushing