Why cant we transfer all elements of stack into another stack and then print the other stack, wont this also reverse the stack>
Why cant we just print the second stack to get in reverse order?
@Ak07
yeah smart solution .
but we dont have to print in reverse order ,the task is to reverse the content of first stack using one extra stack.