how does stack works when we called a variable storing recursion result