結果 : time complexity of stack and queue