How to pop the element of stack to a list?

Printable View