結果 : write algorithm for operations of stack with examples