結果 : queue implementation in python code