結果 : python using stack and queue