結果 : write ac function to implement push and pop operation in stack