結果 : write a function in python pop arr where arr is a stack implemented