結果 : algorithm for implementing stack using array