結果 : write an algorithm for basic operations of queue